using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web;

namespace DecisionMaking.BusinessLogic.Model
{
	[PropertiesMustMatch("Password", "ConfirmPassword", ErrorMessage = "The password and confirmation password do not match.")]
	public class RegisterModel
	{
        [Required]
        [DataType(DataType.Text)]
        [DisplayName("First Name")]	
		[StringLength(50)]		
		public string FirstName {get; set; }
		
        [Required]
        [DataType(DataType.Text)]
        [DisplayName("Last Name")]	
		[StringLength(50)]		
		public string LastName {get; set; }		
		
        [Required]
        [DataType(DataType.EmailAddress)]
        [DisplayName("Email address")]
        public string Email { get; set; }

        [Required, ValidatePasswordLength]
        [DataType(DataType.Password)]
        [DisplayName("Password")]
        public string Password { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [DisplayName("Confirm password")]
        public string ConfirmPassword { get; set; }
	}
}

